package com.iot.warning;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//@SpringBootApplication
//public class IotWarningApplication {
//
//    public static void main(String[] args) {
//        SpringApplication.run(IotWarningApplication.class, args);
//    }
//}

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 告警服务
 */
@SpringBootApplication
@EnableDiscoveryClient // 启用服务发现
@ComponentScan(basePackages = {"com.iot.common.*.*", "com.iot.warning.*.**"})
public class IotWarningApplication {

    public static void main(String[] args) {
        SpringApplication.run(IotWarningApplication.class, args);
    }
}
